package com.shop.cloud.domain.hongfu;

import java.sql.Timestamp;
import java.util.Date;
import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.shop.cloud.common.mapper.OffsetDateTimeToIso8601Serializer;
import com.shop.cloud.common.mybatis.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * user_address-user_address
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class UserAddress extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 用户id号
	 */
	@ApiModelProperty(value = "用户id号")
	 private Long userId;
	/**
	 * 是否默认。
0：否
1：是
	 */
	@ApiModelProperty(value = "是否默认。0：否1：是")
	 private Integer isDefault;
	/**
	 * 用户姓名
	 */
	@ApiModelProperty(value = "用户姓名")
	 private String name;
	/**
	 * 用户号码
	 */
	@ApiModelProperty(value = "用户号码")
	 private String phone;
	/**
	 * 地区id
	 */
	@ApiModelProperty(value = "地区id")
	 private Long regionId;
	/**
	 * 详细地址
	 */
	@ApiModelProperty(value = "详细地址")
	 private String address;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")		
	 private Timestamp createTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")		
	 private Timestamp updateTime;
    
    public UserAddress(){
    
    }
    
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Integer getIsDefault() {
        return this.isDefault;
    }
    
    public void setIsDefault(Integer isDefault) {
        this.isDefault = isDefault;
    }
    public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    public String getPhone() {
        return this.phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public Long getRegionId() {
        return this.regionId;
    }
    
    public void setRegionId(Long regionId) {
        this.regionId = regionId;
    }
    public String getAddress() {
        return this.address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

}